require 'migration_helpers'
class CreateTrackers < ActiveRecord::Migration
  extend MigrationHelpers
  
  def self.up
    create_table :trackers do |t|
      t.integer :project_id
      t.string  :type
      t.string  :url
      t.string  :project
      t.string  :login
      t.string  :password
      t.string  :created_by
      t.string  :updated_by
      t.timestamps
    end
    
    foreign_key(:trackers, :project_id, :projects)
    
  end
  
  

  def self.down
    drop_table :trackers
  end
end
